package com.lh.dao;

import com.lh.entity.Role;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: LuoHang
 * @Date: 2021/2/8 0:50
 * @Description
 */
@Repository
public class RoleDao {
    @Autowired
    private SqlSessionTemplate sessionTemplate;

    public List<Role> getRoles(){
        return sessionTemplate.selectList("RoleMapper.getRoles");
    }
}
